export function TMap() {
  return new Promise(function (resolve, reject) {
    // #ifdef MP-WEIXIN
    init = function () {
      resolve(qq) //注意这里
    }
    // #endif

    // #ifndef MP-WEIXIN
    window.init = function () {
      resolve(qq) //注意这里
    }
    // #endif
	init = function(){
		resolve(qq)
	}
	window.init = function (){
		resolve(qq)
	}
    var script = document.createElement("script");
    script.type = "text/javascript";
    script.src = "http://map.qq.com/api/js?v=2.exp&callback=init&key=ZW2BZ-GHLWO-EO7WR-S3QPR-MNNV7-4ZFEY";
    script.onerror = reject;
    document.head.appendChild(script);
  })
}